'use client'

import Link from "next/link";
import { useState } from "react";

function Layout({ children }) {
    const [count, setCount] = useState(0);

    return (
        <>
            <div>
                <Link href='/dashboard/about'>about</Link> | 
                <Link href='/dashboard/settings'>settings</Link>
            </div>

            <h1>Layout {count}</h1>
            <button onClick={() => setCount(count + 1)}>add</button>
            {children}
        </>
    )
}
export default Layout;